<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>New page</title>
    </head>
    <body>
        <h1>New page</h1>
        <form:form method="POST" modelAttribute="opinion" enctype="multipart/form-data" action="${pageContext.request.contextPath}/opinions" >
            <table>
                <tbody>
                    <tr>
                        <td>内容：</td>
                        <td><form:textarea path="content"/></td>
                        <td><form:errors path="content" cssClass="error"/></td>
                    </tr>
                    <tr>
                        <td><input type="submit" value="发表"  /></td>
                        <td></td>
                        <td></td>
                    </tr>
                </tbody>
            </table>
        </form:form>
        <a href="${pageContext.request.contextPath}/">主页</a>
    </body>
</html>